package com.jcfy.project.module.domain;

import com.jcfy.framework.aspectj.lang.annotation.Excel;
import com.jcfy.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 地址对象 t_address
 *
 * @author jiangfeng
 * @date 2020-08-05
 */
public class TAddress extends BaseEntity {
    private static final long serialVersionUID=1L;

    /** 主键ID */
    private Long addressId;

    /** 用户id */
    @Excel(name = "用户id" )
    private Long userId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名" )
    private String name;

    /** 收货人手机号 */
    @Excel(name = "收货人手机号" )
    private String mobile;

    /** 省 */
    @Excel(name = "省" )
    private String province;

    /** 市 */
    @Excel(name = "市" )
    private String city;

    /** 区 */
    @Excel(name = "区" )
    private String area;

    /** 详细地址 */
    @Excel(name = "详细地址" )
    private String address;

    /** 是否为默认 */
    @Excel(name = "是否为默认" )
    private Integer isDefault;

    /** 状态 */
    @Excel(name = "状态" )
    private Integer status;

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getAddressId() {
        return addressId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMobile() {
        return mobile;
    }
    public void setProvince(String province) {
        this.province = province;
    }

    public String getProvince() {
        return province;
    }
    public void setCity(String city) {
        this.city = city;
    }

    public String getCity() {
        return city;
    }
    public void setArea(String area) {
        this.area = area;
    }

    public String getArea() {
        return area;
    }
    public void setAddress(String address) {
        this.address = address;
    }

    public String getAddress() {
        return address;
    }
    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault() {
        return isDefault;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId" ,getAddressId())
            .append("userId" ,getUserId())
            .append("name" ,getName())
            .append("mobile" ,getMobile())
            .append("province" ,getProvince())
            .append("city" ,getCity())
            .append("area" ,getArea())
            .append("address" ,getAddress())
            .append("isDefault" ,getIsDefault())
            .append("createTime" ,getCreateTime())
            .append("updateTime" ,getUpdateTime())
            .append("status" ,getStatus())
            .toString();
    }
}
